/**
 * Copyright (C) 2017 - 2020 https://github.com/joewee
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.bifrost.service;

import com.bifrost.exception.BonusPointsNotEnoughException;
import com.bifrost.exception.OriginOrderNotFundException;
import com.bifrost.model.ExternalOrder;
import com.bifrost.model.ReProcessModel;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;

/**
 *
 *
 *@author joewee
 *@version 1.0.0
 *@Date 2018/5/11 09:00
 */
public interface ExternalOrderService {

    /**
     * 处理外部订单预处理
     */
    void proces();
    /**
     * 重新处理外部订单预处理
     */
    void reProces(String market,Date begin,Date end);
    void reProces(String  model);

    /**
     * 执行调用接口
     * @param orders
     */
    void excute(List<ExternalOrder> orders) throws BonusPointsNotEnoughException, OriginOrderNotFundException;
}
